package top.soulblack.purchasesale.common.enums;

import lombok.Getter;

/**
 * @Author: 韦溜溜
 * @Description:
 * @Date: Create in 17:46 2019/7/18
 */
@Getter
public enum ResultEnum {
    SKUEMPITY(1,"没有对应的SKU"),
    STOREEMPITY(2,"仓库设置错误，没有仓库拥有对应商品，请重新设置。"),
    USEREMPITY(3,"用户不存在"),
    STOREHOUSEEMPITY(4,"仓库不存在"),
    ORDERINSERTERROR(5,"订单详情插入失败"),
    ORDERMASTERERROR(5,"订单主体插入失败"),
    ORDERSELECTERROR(6,"订单主体查询失败"),
    ORDERDETAILSELECTERROR(7,"订单详情查询失败"),
    UPDATEERROR(8,"订单状态更新失败"),
    INSERTOUTORDERERROR(9,"出库单插入失败")
    ;
    private Integer code;

    private String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
